package com.xm.web;

import com.xm.swagger.config.EnableSwaggerGroups;
import org.apache.commons.lang.time.DateFormatUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

import java.util.Date;

/**
 * 图书管理系统...
 */
@EnableSwaggerGroups
@EnableDiscoveryClient
@MapperScan("com.xm.web.mapper")
@SpringBootApplication(scanBasePackages = "com.xm")
public class WebApplication {

    static {
        System.setProperty("nacos.logging.default.config.enabled", "false");
        System.setProperty("logs.file.unique", DateFormatUtils.format(new Date(), "HHmmssSSS") + (int) (Math.random() * 10));
    }

    public static void main(String[] args) {
        SpringApplication.run(WebApplication.class, args);
    }

}
